Skip to content

chore(exam_card): add the weekday the exam is taking place#1832

Open
SIMAOMARTA wants to merge 2 commits intodevelopfrom
chore/weekday_exam_card
Open

chore(exam_card): add the weekday the exam is taking place#1832
SIMAOMARTA wants to merge 2 commits intodevelopfrom
chore/weekday_exam_card

Conversation

@SIMAOMARTA
Copy link
Copy Markdown
Contributor

Closes #1822

Adds the shortname of the weekday in which the exam is taking place. (only in the "percurso académico" not in the main page)

Review checklist

  • Terms and conditions reflect the changes

View Changes

  • Description has screenshots of the UI changes.
  • Tested both in light and dark mode.
  • New text is both in portuguese (PT) and english (EN).
  • Works in different text zoom levels.
  • Works in different screen sizes.

Performance

  • No helper functions to return widgets are added. New widgets are created instead.
  • Used ListView.builder for Long Lists.
  • Controllers (TextEditingController, ...) are beeing disposed of in dispose() method.

@SIMAOMARTA SIMAOMARTA self-assigned this Apr 10, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 10, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 7%. Comparing base (d2e3b63) to head (32ae8be).
⚠️ Report is 1 commits behind head on develop.

❌ Your project check has failed because the head coverage (7%) is below the target coverage (70%). You can increase the head coverage or adjust the target coverage.

Additional details and impacted files
@@           Coverage Diff           @@
##           develop   #1832   +/-   ##
=======================================
  Coverage        7%      7%           
=======================================
  Files           38      38           
  Lines         1886    1886           
=======================================
  Hits           125     125           
  Misses        1761    1761           
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Copy Markdown
Member

@pedroafmonteiro pedroafmonteiro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello! Thanks for these changes! While functionally looks good, this logic could be a bit simplified so it is more readable by other developers.

Instead of making this logic pass through two files, you could create a helper method called _formatWeekday in exam_month_timeline.dart and use it directly on the subtitle parameter.

Here's a possible example of such method:

String _formatWeekday(DateTime date, AppLocale locale) {
    final weekday = DateFormat.E(locale.localeCode.languageCode).format(date);
    return weekday[0].toUpperCase() + weekday.substring(1).toLowerCase();
}

Also, the issue about missing exams does not appear on my end, probably it was just a sigarra moment on the other day.

Tell me if you agree/have any doubts! Thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

chore: add day of the week to exams card in the timeline

2 participants